<?php
class BoxFoodPlaceComment extends TRepeaterItemRenderer
{
	public function onDataBinding($param)
	{
		parent::onDataBinding($param);		
		if (count($this->Data)>0)
		{	
			if ($this->Data->CreateBy == 0)
				$this->lblReviewer->Text = "Guest";	
			else
			{
				$user = UserRecord::finder()->findByPk($this->Data->CreateBy);
				$this->lblReviewer->Text = $user->UserName;
			}
		}		
	}
}

?>